package hu.vaes_dot_hrak.szoftlab4;

public class AntKillerToxic {
	private boolean toxic;
	private int toxicTime;

	public AntKillerToxic() {
		this.toxic = false;
		this.toxicTime = -1;
	}

	public boolean isToxic() {
		return toxic;
	}

	public void setToxic(boolean toxic) {
		this.toxic = toxic;
	}

	public int getToxicTime() {
		return toxicTime;
	}

	public void setToxicTime(int toxicTime) {
		this.toxicTime = toxicTime;
	}

	public void decreaseToxicTime() {
		if (toxicTime > 0) {
			toxicTime--;
		}
		if (toxicTime == 0) {
			toxic = false;
		}
	}
}
